SUBDIRS=./src/

all: 
	for subdirs in $(SUBDIRS);\
	do  \
	  cd $$subdirs && make -f Makefile ; \
	done
run :
	#mpirun -np 4 ./bin/rtm3d 2 2 1
	#bsub -I -q q_x86_expr  -n 3 -np 1 ./bin/rtm3d 3 1 1
	rm log/* -rf
	##bsub -b -I -q q_sw_expr -n 27 -cgsp 64 -host_stack 256 -share_size 7000 ./bin/rtm3d 3 3 3
	bsub -b -I -q q_sw_share -n 64 -np 1 -cgsp 64 -host_stack 256 -share_size 6000 ./bin/rtm3d 4 4 4 
	#bsub -b -I -q q_sw_expr -n 8 -cgsp 64 -host_stack 256 -share_size 7000 ./bin/rtm3d 2 2 2 
clean:
	for subdirs in $(SUBDIRS);\
	do  \
	  cd $$subdirs && make clean -f Makefile ; \
	done


